package com.niiwoo.civet.user.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum QuestionIdentityTagEnum {
    NEW_HAND((byte) 0, "新手"),
    INVESTOR((byte) 1, "投资人"),
    BORROWER((byte) 2, "借款人");

    public final Byte value;
    public final String desc;
    public static QuestionIdentityTagEnum enumOf(Byte value) {
        for (QuestionIdentityTagEnum questionIdentityTagEnum : values()) {
            if (questionIdentityTagEnum.value.equals(value)) {
                return questionIdentityTagEnum;
            }
        }
        return null;
    }
}
